﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Banner.Master" CodeBehind="StarHolders.aspx.vb" Inherits="ETeacherforIELTS.StarHolders" 
    title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style20
        {
            width: 406px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="bgStyle">
        <tr>
            <td class ="sides">
                &nbsp;</td>
            <td class ="style10">
                Click here to view
                <asp:LinkButton ID="LinkButton7" runat="server" Font-Underline="False" 
                    ForeColor="#993300" PostBackUrl="~/highrankedppl.aspx">Best Partners</asp:LinkButton>
            &nbsp;who got higher user rates.</td>
            <td>
                &nbsp;</td>
            <td class ="sides">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style20">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="starHoldersList" DataKeyNames="ID" CssClass ="bgStyle">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table class="style19">
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label8" runat="server" CssClass ="TitleStyle" Text="User Name :"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label9" runat="server" CssClass="databoundStyle " Text='<%# Eval("UserName") %>'></asp:Label>
                                            &nbsp;<img alt="" src="images/starblue.png" style="width: 16px; height: 16px" /></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label11" runat="server" Text="Visited Count :" CssClass ="TitleStyle"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label10" runat="server" CssClass ="databoundStyle " Text='<%# Eval("VisitedCount") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label13" runat="server" CssClass ="TitleStyle" Text="Material Name : "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label12" runat="server" CssClass ="databoundStyle" Text='<%# Eval("MaterialName") %>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:ButtonField    
                                        ItemStyle-BackColor="AliceBlue" CommandName="rank" 
                                        Text="View Details" ItemStyle-CssClass="TitleStyle" ItemStyle-HorizontalAlign="Center"  HeaderStyle-HorizontalAlign="Center"  >
                                    <HeaderStyle   />
                                    <ItemStyle BackColor="AliceBlue" />
                                    </asp:ButtonField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table class="style19">
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text="User Name :"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label3" runat="server" Text="Visited Count :"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label6" runat="server" Text='<%# Eval("VisitedCount") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" runat="server" Text="Material Name :"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("MaterialName", "{0}") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
                <asp:SqlDataSource ID="starHoldersList" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                    SelectCommand="SELECT [MaterialName], [VisitedCount], [UserName], [ID] FROM [starHolder]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style20">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
